<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>DTL标签练习</title>
    <style type="text/css">
        .row1{
            color: red;
        }
        .row2{
            color: blue;
        }

    </style>
</head>
<body>
<h3>用户列表</h3>
{% for user in user_lists %}
    <p class="{% cycle 'row1' 'row2' %}">第{{ forloop.counter }}个用户的信息
        <br/>
    {% for key,value in user.items %}
        {{ key }}：{{ value }}
    {% endfor %}
    </p>
{% empty %}
     <p>暂无用户信息</p>
{% endfor %}
<a href="{% url 'HelloWorld' %}">首页</a>
{% load static %}
<br/>
<img src="{% static 't.jpg' %}" alt="T">
<br/>
{% now 'Y F jS H:i' %}

</body>
</html>